﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Consts: MonoBehaviour {

    public enum FoodType
    {
        Sphere,
        Triangle,
        Square,
        Pentagon,
        Haxagon
    }

    public enum BulletType
    {
        Ball,
        Arraw,
        Light
    }

    public GameObject Background;

    public static float MapWidth = 200;
    public static float MapHeight = 100;

    public static int InitFood = 1000;

    void Start()
    {
        Vector3 size = Background.GetComponent<MeshFilter>().mesh.bounds.size;
        Consts.MapWidth = (size.x * Background.transform.lossyScale.x) / 2;
        Consts.MapHeight = (size.z * Background.transform.localScale.z) / 2;
    }

    void Update()
    {

    }
}
